(function(e,t,n){"use strict";var i=function(){function e(){babelHelpers.classCallCheck(this,e);this._components={};this._mutations={};this._clones={};this.event=new n.VueVendorV2({})}babelHelpers.createClass(e,[{key:"create",value:function e(t){return new n.VueVendorV2(t)}},{key:"component",value:function e(t,i){this._components[t]=Object.assign({},i);if(typeof this._clones[t]!=="undefined"){this._registerCloneComponent(t)}return n.VueVendorV2.component(t,this._getComponentParamsWithMutation(t,this._mutations[t]))}},{key:"mutateComponent",value:function e(t,n){var i=this;if(typeof this._mutations[t]==="undefined"){this._mutations[t]=[]}this._mutations[t].push(n);if(typeof this._components[t]!=="undefined"){this.component(t,this._components[t])}return function(){i._mutations[t]=i._mutations[t].filter(function(e){return e!==n})}}},{key:"cloneComponent",value:function e(t,n,i){if(typeof this._clones[n]==="undefined"){this._clones[n]={}}this._clones[n][t]={id:t,sourceId:n,mutations:i};if(typeof this._components[n]!=="undefined"){this._registerCloneComponent(n,t)}return true}},{key:"isComponent",value:function e(t){return typeof this._components[t]!=="undefined"}},{key:"extend",value:function e(t){return n.VueVendorV2.extend(t)}},{key:"nextTick",value:function e(t,i){return n.VueVendorV2.nextTick(t,i)}},{key:"set",value:function e(t,i,r){return n.VueVendorV2.set(t,i,r)}},{key:"delete",value:function e(t,i){return n.VueVendorV2.delete(t,i)}},{key:"directive",value:function e(t,i){return n.VueVendorV2.directive(t,i)}},{key:"filter",value:function e(t,i){return n.VueVendorV2.filter(t,i)}},{key:"use",value:function e(t){return n.VueVendorV2.use(t)}},{key:"mixin",value:function e(t){return n.VueVendorV2.mixin(t)}},{key:"observable",value:function e(t){return n.VueVendorV2.observable(t)}},{key:"compile",value:function e(t){return n.VueVendorV2.compile(t)}},{key:"version",value:function e(){return n.VueVendorV2.version}},{key:"getFilteredPhrases",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var i={};if(!n&&typeof BX.message!=="undefined"){n=BX.message}if(Array.isArray(t)){var r=function e(r){if(!n.hasOwnProperty(r)){return"continue"}if(!t.find(function(e){return r.toString().startsWith(e)})){return"continue"}i[r]=n[r]};for(var o in n){var s=r(o);if(s==="continue")continue}}else{for(var u in n){if(!n.hasOwnProperty(u)){continue}if(!u.startsWith(t)){continue}i[u]=n[u]}}return Object.freeze(i)}},{key:"_getComponentParamsWithMutation",value:function e(t,n){var i=this;if(typeof this._components[t]==="undefined"){return null}var r=Object.assign({},this._components[t]);if(typeof n==="undefined"){return r}n.forEach(function(e){r=i._applyMutation(i._cloneObjectWithoutDuplicateFunction(r,e),e)});return r}},{key:"_registerCloneComponent",value:function e(t){var n=this;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var r=[];if(i){if(typeof this._clones[t][i]!=="undefined"){r.push(this._clones[t][i])}}else{for(var o in this._clones[t]){if(!this._clones[t].hasOwnProperty(o)){continue}r.push(this._clones[t][o])}}r.forEach(function(e){var t=[];if(typeof n._mutations[e.sourceId]!=="undefined"){t=t.concat(n._mutations[e.sourceId])}t.push(e.mutations);var i=n._getComponentParamsWithMutation(e.sourceId,t);if(!i){return false}n.component(e.id,i)})}},{key:"_cloneObjectWithoutDuplicateFunction",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var r={};for(var o in t){if(!t.hasOwnProperty(o)){continue}if(typeof t[o]==="string"){r[o]=t[o]}else if(Object.prototype.toString.call(t[o])==="[object Array]"){r[o]=[].concat(t[o])}else if(babelHelpers.typeof(t[o])==="object"){if(t[o]===null){r[o]=null}else if(babelHelpers.typeof(n[o])==="object"){r[o]=this._cloneObjectWithoutDuplicateFunction(t[o],n[o],i+1)}else{r[o]=Object.assign({},t[o])}}else if(typeof t[o]==="function"){if(typeof n[o]!=="function"){r[o]=t[o]}else if(i>1){r["parent"+o[0].toUpperCase()+o.substr(1)]=t[o]}else{if(typeof r["methods"]==="undefined"){r["methods"]={}}r["methods"]["parent"+o[0].toUpperCase()+o.substr(1)]=t[o];if(typeof t["methods"]==="undefined"){t["methods"]={}}t["methods"]["parent"+o[0].toUpperCase()+o.substr(1)]=t[o]}}else if(typeof t[o]!=="undefined"){r[o]=t[o]}}return r}},{key:"_applyMutation",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=Object.assign({},t);for(var r in n){if(!n.hasOwnProperty(r)){continue}if(typeof n[r]==="string"){if(typeof i[r]==="string"){i[r]=n[r].replace("#PARENT_".concat(r.toUpperCase(),"#"),i[r])}else{i[r]=n[r].replace("#PARENT_".concat(r.toUpperCase(),"#"),"")}}else if(Object.prototype.toString.call(n[r])==="[object Array]"){i[r]=[].concat(n[r])}else if(babelHelpers.typeof(n[r])==="object"){if(babelHelpers.typeof(i[r])==="object"){i[r]=this._applyMutation(i[r],n[r])}else{i[r]=n[r]}}else{i[r]=n[r]}}return i}},{key:"testNode",value:function e(t,n){if(!n||babelHelpers.typeof(n)!=="object"){return true}var i,r,o;for(i in n){if(!n.hasOwnProperty(i)){continue}switch(i){case"tag":case"tagName":if(typeof n[i]==="string"){if(t.tagName.toUpperCase()!==n[i].toUpperCase()){return false}}else if(n[i]instanceof RegExp){if(!n[i].test(t.tagName)){return false}}break;case"class":case"className":if(typeof n[i]==="string"){if(!t.classList.contains(n[i].trim())){return false}}else if(n[i]instanceof RegExp){if(typeof t.className!=="string"||!n[i].test(t.className)){return false}}break;case"attr":case"attrs":case"attribute":if(typeof n[i]==="string"){if(!t.getAttribute(n[i])){return false}}else if(n[i]&&Object.prototype.toString.call(n[i])==="[object Array]"){for(r=0,o=n[i].length;r<o;r++){if(n[i][r]&&!t.getAttribute(n[i][r])){return false}}}else{for(r in n[i]){if(!n[i].hasOwnProperty(r)){continue}var s=t.getAttribute(r);if(typeof s!=="string"){return false}if(n[i][r]instanceof RegExp){if(!n[i][r].test(s)){return false}}else if(s!==""+n[i][r]){return false}}}break;case"property":case"props":if(typeof n[i]==="string"){if(!t[n[i]]){return false}}else if(n[i]&&Object.prototype.toString.call(n[i])=="[object Array]"){for(r=0,o=n[i].length;r<o;r++){if(n[i][r]&&!t[n[i][r]]){return false}}}else{for(r in n[i]){if(!n[i].hasOwnProperty(r)){continue}if(typeof n[i][r]==="string"){if(t[r]!=n[i][r]){return false}}else if(n[i][r]instanceof RegExp){if(typeof t[r]!=="string"||!n[i][r].test(t[r])){return false}}}}break}}return true}}]);return e}();if(typeof e!=="undefined"&&typeof e.Vue!=="undefined"){e.Vue=e.Vue;e.VueVendor=e.VueVendor}else{e.Vue=new i;e.VueVendor=n.VueVendorV2}})(this.BX=this.BX||{},window,BX);
//# sourceMappingURL=vue.bitrix.bundle.map.js